//run.cpp
#include <iostream>
#include "Volunteer.h"
using namespace std;

int main() {
    Volunteer v1("HuMing", "幸福里小区", Publicity, Saturday);
    Volunteer v2("ChenDong", "祥和小区", MedicalCare, Sunday);
    Volunteer v3("XiaoMing", "祥和小区", Security, Monday);
    Volunteer v4("XiaoHong", "祥和小区", Security, Tuesday);
    Volunteer v5("XiaoHu", "祥和小区", Security, Wednesday);
    Volunteer v6("ChenLong", "祥和小区", Security, Thursday);
    Volunteer v7("XiaoHei", "祥和小区", Security, Friday);
    Volunteer v8("Blue", "祥和小区", Security, Saturday);
    Volunteer v9("XiaoHua", "祥和小区", Security, Sunday);
    Volunteer v10("XiaoHong", "祥和小区", Sanitation, Thursday);
    cout << v1.GetName() << " live in " << v1.GetAddress() << ". ";
    v1.Work();
    cout << v2.GetName() << " live in " << v2.GetAddress() << ". ";
    v2.Work();
    cout << v3.GetName() << " live in " << v3.GetAddress() << ". ";
    v3.Work();
    cout << v4.GetName() << " live in " << v4.GetAddress() << ". ";
    v4.Work();
    cout << v5.GetName() << " live in " << v5.GetAddress() << ". ";
    v5.Work();
    cout << v6.GetName() << " live in " << v6.GetAddress() << ". ";
    v6.Work();
    cout << v7.GetName() << " live in " << v7.GetAddress() << ". ";
    v7.Work();
    cout << v8.GetName() << " live in " << v8.GetAddress() << ". ";
    v8.Work();
    cout << v9.GetName() << " live in " << v9.GetAddress() << ". ";
    v9.Work();
    cout << v10.GetName() << " live in " << v10.GetAddress() << ". ";
    v10.Work();
    return 0;
}